package com.graducationdesign.springboot.controller.Teacher;

import com.graducationdesign.springboot.dao.NewsInformationDao;
import com.graducationdesign.springboot.entities.crawling.NewsInformation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
import java.util.Map;

/**
 * @author Mr.zhneg
 * @create 2020-05-24-0:18
 */
@Controller
public class NewsInformationEnteringForTeaController {

    Logger logger= LoggerFactory.getLogger(getClass());

    @Autowired
    NewsInformationDao newsInformationDao;
    @GetMapping("/newsinformationenteringfortea")
    public  String list(NewsInformation newsInformation, Map<String,Object> map){

        logger.info("招聘信息查询。。。"+newsInformation);
        List<NewsInformation> newsInformations=newsInformationDao.findAll() ;
//        logger.info("查询操作：招聘信息查询结果。。。"+graducationDesigns);
        map.put("newsInformation",newsInformations);


        return "Teacher/publicInformationMoudle/newsinformationentering";
    }


}
